<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	
	<script type="text/javascript" src="js/jquery-2.1.3.js"></script>
	<script type="text/javascript" src="js/jquery.ui.js"></script>
	<script type="text/javascript" src="js/uikit.min.js"></script>
	<script type="text/javascript" src="js/components/notify.js"></script>
	<script type="text/javascript" src="js/jquery.simplePagination.js"></script>
	<script type="text/javascript" src="js/grcJS.js"></script>
	<script type="text/javascript" src="js/GRCJS/StrutsActionSolution/StrutsActionSolution.js"></script>

	
	<link rel="stylesheet" type="text/css" href="css/uikit.min.css"></link>
	<link rel="stylesheet" type="text/css" href="css/simplePagination.css" />
	<link rel="stylesheet" type="text/css" href="js/GRCJS/UniversalMethod/UMTable.css"></link>
	
	<title>demo</title>

</head>
<body>
	<div id="div1"></div>

	<button id="selectOrderButton">弹出框</button>
	<button id="getValue">getValue</button>

	<div id="SelectOrder" class="uk-modal" aria-hidden="true" style="display: none; overflow-y: auto;">
		<div class="uk-modal-dialog uk-modal-dialog-large">
			<a href="" class="uk-modal-close uk-close"></a>
			<div class="uk-modal-header">
				<h1>选择生产计划</h1>
			</div>
			<div class="uk-modal-body">
				<div id="div3"></div>
				<div style="margin-top: 2%;">
					<button class="uk-button-primary uk-button-small confirm" type="button">确定</button>
					<button id="button1">最后一页</button>
					<button id="button2">刷新当前页</button>
				</div>
			</div>
		</div>
	</div>

	<script type="text/javascript">
		

	
		$(document).ready(function() {
			
			var div3;
			//弹出框
			var SelectOrder = UIkit.modal("#SelectOrder");
			$('#selectOrderButton').click(function(){
				SelectOrder.show();
				if(div3 == null){
					div3 = $('#div3').um({
						tableEntityName : "PmProductionPlanningSelectView",
						
						readOnly : true,
						checkboxOrRadio : "radio",
						
						tableList : [ {
							theadName : "productProjId",
							tdId : "productProjId",
							dataType: "str"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}, {
							theadName : "orderDate",
							tdId : "orderDate",
							dataType: "date"
						}],
					});
				}
			});
			$('#SelectOrder').find('.confirm').click(function(){
				SelectOrder.hide();
			});
			
			$('#getValue').click(function(){
				alert(div1.getValue());
			});
			var div1 = $('#div1').um({
				tableEntityName : "SysAgeingAutoParameter",

				readOnly : false,
				checkboxOrRadio : "radio",
				rowClick : function(){
					infoAlert("asd");
				},
				
				tableList : [ {
					theadName : "ID",
					tdId : "id",
					dataType: "str"
				}, {
					theadName : "正箔电压",
					tdId : "positiveFoilVoltage",
					dataType: "str"
				}, {
					theadName : "段数",
					tdId : "segmentNumber",
					dataType: "str"
				}, {
					theadName : "电压",
					tdId : "voltage",
					dataType: "str"
				}, {
					theadName : "老化等级",
					tdId : "ageingRange",
					dataType: "str"
				}, {
					theadName : "测试电压",
					tdId : "testVoltage",
					dataType: "str"
				}, {
					theadName : "温度",
					tdId : "temperature",
					dataType: "str"
				}, {
					theadName : "正箔电压",
					tdId : "positiveFoilVoltage",
					dataType: "str"
				}, {
					theadName : "段数",
					tdId : "segmentNumber",
					dataType: "str"
				}, {
					theadName : "电压",
					tdId : "voltage",
					dataType: "str"
				}, {
					theadName : "老化等级",
					tdId : "ageingRange",
					dataType: "str"
				}, {
					theadName : "测试电压",
					tdId : "testVoltage",
					dataType: "str"
				}, {
					theadName : "温度",
					tdId : "temperature",
					dataType: "str"
				}, {
					theadName : "正箔电压",
					tdId : "positiveFoilVoltage",
					dataType: "str"
				}, {
					theadName : "段数",
					tdId : "segmentNumber",
					dataType: "str"
				}, {
					theadName : "电压",
					tdId : "voltage",
					dataType: "str"
				}, {
					theadName : "老化等级",
					tdId : "ageingRange",
					dataType: "str"
				}, {
					theadName : "测试电压",
					tdId : "testVoltage",
					dataType: "str"
				}],
			});	
		
			
			$('#button1').click(function(){
				div3.showLastPage();
			});
			$('#button2').click(function(){
				div3.reflashNowPage();
			});
		});
	</script>

	<script type="text/javascript" src="js/GRCJS/UniversalMethod/UMTable.js"></script>

</body>
</html>